<?php

$blog='NULL';
$blogdata='NULL';
$optiondomain = 'system';
$_REQUEST['b']='system';
/*
require('../private.php');
require(CONFIGPATH . 'wp-config.php');

get_currentuserinfo();
$SITE_TITLE = get_settings('site_title');

if (!$userdata->user_admin){
        exit();
}
*/


include("../../lib/std.lib");
include("../../lib/db.lib");

$text=param("content");
$user=$_POST["user"];


$fname="link_on_top.txt";

$date_text="\nLast updated by $user at ".date("Y-m-d H:i:s");
$text=preg_replace("/\r/","",$text);
$text=stripslashes($text);

$fh=fopen($fname,"w");
fwrite($fh,$text);
//fwrite($fh,$date_text);
fclose($fh);
redirect(" <br>Finished!<br>","index.php",2);
exit();

?>
